﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ChongJu.ModelManager.Config
{
    public class RatingConfigModel
    {
        /// <summary>
        /// 拍照位置到第一道口的距离(光电到第一道口开口的距离)
        /// </summary>
        public int CmrFirstDst { get; set; } = 1100;   //mm

        public int CameraDst { get; set; } = 450;  //mm

        /// <summary>
        /// 整体皮带运行速度
        /// </summary>
        public float BeltSpeed { get; set; } = 1000;      //  mm/s

        /// <summary>
        /// 料仓的宽度
        /// </summary>
        public int StoreDst { get; set; } = 500;        //mm

        /// <summary>
        /// 启动超调
        /// </summary>
        public bool IsHandSpeed { get; set; } = false;

        /// <summary>
        /// 超调比例
        /// </summary>
        public int SpeedRate { get; set; } = 100;

        /// <summary>
        /// 料仓数量
        /// </summary>
        public int StoreCount { get; set; } = 8;

        public int StoreOpenTime { get; set; }

        #region Old

        /// <summary>
        /// 每个道口的运行时间
        /// </summary>
        public int Time { get; set; } = 500;

        /// <summary>
        /// 开口持续时间
        /// </summary>
        public int OpenTime { get; set; } = 1000;

        /// <summary>
        /// 入站后 出站处检测的超时时间
        /// </summary>
        public int OutTime { get; set; } = 2500;

        /// <summary>
        /// 基准调控时间
        /// </summary>
        public int BaseTime { get; set; } = 0;

        /// <summary>
        /// 光电间隔触发时间
        /// </summary>
        public int IntervalTime { get; set; } = 200;


        /// <summary>
        /// 测试通道 后续删除
        /// </summary>
        public int TestIndex { get;set; } = 0;

        /// <summary>
        /// 分拣类型 0：plc   1：exe
        /// </summary>
        public int Type { get; set;}

        /// <summary>
        /// 运行速度 从PLC获取
        /// </summary>
        public int Speed { get; set; }


        public int One { get; set; } = 100;

        public int Two { get; set; } = 300;

        public int Three { get; set; } = 500;

        public int Four { get; set; } = 700;

        public int Five { get; set; } = 900;

        public int Six { get; set; } = 1100;

        public int Seven { get; set; } = 1300;

        public int Eight { get; set; } = 1500;

        #endregion
    }
}
